﻿using Domain.Services;
using System;

namespace UserInterface.Install
{
    public partial class Install : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            //GridView1.DataSource = Domain.Repository.Registry.GroupRepository.GetAll();
            //GridView1.DataBind();
        }

        protected void TestConnectionButton_Click(object sender, EventArgs e)
        {
            try
            {
                DiagService.TestConnection();
                ConnectionStatusLiteral.Text = "Connection is working!";
            }
            catch(Exception ex)
            {
                ConnectionStatusLiteral.Text = "Connection is not working: " + ex.Message;
            }
        }
    }
}
